<?php

class Core_Form_Admin_Settings_General_Speed extends Core_Form_Admin_Settings_Base
{
    protected function _init()
    {

        $this -> setName('form_settings_speed') -> setTitle('@self') -> setDesc('@self');

        $this -> addElement('@radio', 'site_speed_gzip-enable', array(
            'value' => 'on',
            'label' => '@self',
            'desc' => '@self',
            'multiOptions' => array(
                'on' => 'yes',
                'off' => 'no',
            ),
        ));

        $this -> addElement('@select', 'site_speed_gzip-level', array(
            'value' => 1,
            'label' => '@self',
            'desc' => '@self',
            'multiOptions' => array(
                1 => 1,
                2 => 2,
                3 => 3,
                4 => 4,
                5 => 5,
                6 => 6,
                7 => 7,
                8 => 8,
                9 => 9
            ),
        ));

        $this -> addElement('@radio', 'site_speed_minify-js', array(
            'value' => 'on',
            'label' => '@self',
            'desc' => '@self',
            'multiOptions' => array(
                'on' => 'yes',
                'off' => 'no',
            ),
        ));

        $this -> addElement('@radio', 'site_speed_minify-css', array(
            'value' => 'on',
            'label' => '@self',
            'desc' => '@self',
            'multiOptions' => array(
                'on' => 'yes',
                'off' => 'no',
            ),
        ));

        /**
         * buttons
         */
        $this -> addElement('@group', 'buttons');

        $this -> getElement('buttons') -> addElement('@submit', '_submit') -> addElement('@cancel', '_canel');
    }

}
